<template>
  <el-dialog :visible.sync="dialog" :title="title" width="80%">
    <json-view :data="json" />
    <span slot="footer" class="dialog-footer">
      <el-button type="primary" @click="dialog = false">关闭</el-button>
    </span>
  </el-dialog>
</template>

<script>
import jsonView from 'vue-json-views'
export default {
  name: 'JsonDialog',
  components: {
    jsonView
  },
  data() {
    return {
      title: 'JSON详情',
      dialog: false,
      json: {}
    }
  },
  methods: {},
  mounted() {}
}
</script>

<style lang="less">
</style>
